﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Configuration;
using System.Xml.Serialization;
using System.Runtime.Serialization;
using System.Security.Permissions;

using NPMonitor.Helpers;

namespace NPMonitor.Implementation
{
    [Serializable]
    public class DownloadObject
    {
        #region 对象属性

        public string Url { get; set; }

        public string SaveName { get; set; }

        #endregion

        #region 构造函数

        public DownloadObject()
        {
        }

        public DownloadObject(string url)
        {
            this.Url = url;

            this.SaveName = new Uri(url).Segments.Last();
        }

        public DownloadObject(string url, string saveName)
        {
            this.Url = url;

            this.SaveName = saveName;
        }

        #endregion
    }
}
